<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue'
import ArticleList from './components/ArticleList.vue'
import { ref } from 'vue'
const channelId = ref(-1)
const setChannelId = (id: number) => {
  channelId.value = id
}
</script>

<template>
  <ChannelNav :channelId="channelId" @setChannelId="setChannelId"></ChannelNav>
  <ArticleList :channelId="channelId"></ArticleList>
</template>
